﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Company.master" AutoEventWireup="true"
    CodeFile="Company_Transactions.aspx.cs" Inherits="Company_Transactions" %>

<%@ Import Namespace="Avatar.Model" %>
<%@ Import Namespace="Avatar.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_Main" runat="Server">
    <div class="Dialog">
        <div class="Title">
            账户明细
        </div>
        <div class="Content">
            <asp:ListView ID="ListView1" runat="server">
                <ItemTemplate>
                    <tr style="">
                        <td>
                            <%# Helper.DateTimeStringFormat(Convert.ToDateTime(Eval("Date"))) %>
                        </td>
                        <td>
                            <%#((CompanyFinancialAccountLogCategory) Eval("CompanyFinancialAccountLogCategory")).CategoryName %>
                        </td>
                        <td>
                            <%# ((CompanyFinancialAccountLogCategory)Eval("CompanyFinancialAccountLogCategory")).MessageTemplate.Replace(((CompanyFinancialAccountLogCategory)Eval("CompanyFinancialAccountLogCategory")).character,Eval("Money").ToString())%>
                        </td>
                        <td>
                            <%# Eval("Money")%>
                        </td>
                        <td>
                            <%# Eval("Balance")%>
                        </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <table>
                        <tr>
                            <td>
                                <table>
                                    <tr>
                                        <th class="th">
                                            时间
                                        </th>
                                        <th class="th">
                                            类型
                                        </th>
                                        <th class="th">
                                            详细内容
                                        </th>
                                        <th class="th">
                                            金额
                                        </th>
                                        <th class="th">
                                            余额
                                        </th>
                                    </tr>
                                    <tr>
                                        <td colspan="4" style="padding-bottom: 5%; padding-top: 5%; text-align: center;">
                                            无记录.
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </EmptyDataTemplate>
                <LayoutTemplate>
                    <table id="Table1" runat="server">
                        <tr id="Tr1" runat="server">
                            <td id="Td1" runat="server">
                                <table id="itemPlaceholderContainer" runat="server" border="0" style="">
                                    <tr id="Tr2" runat="server" style="">
                                        <th id="Th1" runat="server" class="th">
                                            时间
                                        </th>
                                        <th id="Th2" runat="server" class="th">
                                            类型
                                        </th>
                                        <th id="Th3" runat="server" class="th">
                                            详细内容
                                        </th>
                                        <th id="Th4" runat="server" class="th">
                                            金额
                                        </th>
                                        <th id="Th5" runat="server" class="th">
                                            余额
                                        </th>
                                    </tr>
                                    <tr id="itemPlaceholder" runat="server">
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </LayoutTemplate>
            </asp:ListView>
            <asp:Label ID="lbl_Current" runat="server" />/<asp:Label ID="lbl_Total" runat="server" /> 
            &nbsp;<asp:Button ID="btn_Up" runat="server" Text="上一页" 
                onclick="btn_Up_Click" />
            &nbsp;<asp:Button ID="btn_Down" runat="server" Text="下一页" 
                onclick="btn_Down_Click" />
            &nbsp;<asp:TextBox ID="txt_Page" runat="server"></asp:TextBox> 
            &nbsp;<asp:Button ID="btn_Goto" runat="server" Text="转到" 
                onclick="btn_Goto_Click" />
        </div>
    </div>
</asp:Content>
